package apiroutes

import (
	"dataaysn/internal/service"

	"github.com/gin-gonic/gin"
)

func RegisterTaskLogRoutes(r *gin.Engine, taskLogService *service.TaskLogService) {
	logGroup := r.Group("/api/task-logs")
	{
		logGroup.GET("", taskLogService.ListLogs)
		logGroup.GET("/latest", taskLogService.GetLatestLog)
	}
}
